package com.isoftstone.pojo;

import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;



public class Stipend {
	private int id;
	private String name;
	private float basic;
	private float eat;
	private float house;
	private float duty;
	private float scot;
	private float punishment;
	private float other;
	private String granttime;
	private float totalize;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getBasic() {
		return basic;
	}
	public void setBasic(float basic) {
		this.basic = basic;
	}
	public float getEat() {
		return eat;
	}
	public void setEat(float eat) {
		this.eat = eat;
	}
	public float getHouse() {
		return house;
	}
	public void setHouse(float house) {
		this.house = house;
	}
	public float getDuty() {
		return duty;
	}
	public void setDuty(float duty) {
		this.duty = duty;
	}
	public float getScot() {
		return scot;
	}
	public void setScot(float scot) {
		this.scot = scot;
	}
	public float getPunishment() {
		return punishment;
	}
	public void setPunishment(float punishment) {
		this.punishment = punishment;
	}
	public float getOther() {
		return other;
	}
	public void setOther(float other) {
		this.other = other;
	}
	
	public String getGranttime() {
		return granttime;
	}
	public void setGranttime(String granttime) {
		this.granttime = granttime;
	}
	public float getTotalize() {
		return totalize;
	}
	public void setTotalize(float totalize) {
		this.totalize = totalize;
	}
	@Override
	public String toString() {
		return "Stipend [id=" + id + ", name=" + name + ", basic=" + basic + ", eat=" + eat + ", house=" + house
				+ ", duty=" + duty + ", scot=" + scot + ", punishment=" + punishment + ", other=" + other
				+ ", granttime=" + granttime + ", totalize=" + totalize + "]";
	}
	
	public void computeTotalize(){
		totalize=basic+eat+house+duty+scot-punishment+other;
	}
	
    

}
